package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.KnowledgeCategory;

/**
 * 知识分类Mapper接口
 * 
 * @author ruoyi
 * @date 2025-03-23
 */
public interface KnowledgeCategoryMapper 
{
    /**
     * 查询知识分类
     * 
     * @param id 知识分类主键
     * @return 知识分类
     */
    public KnowledgeCategory selectKnowledgeCategoryById(Long id);

    /**
     * 查询知识分类列表
     * 
     * @param knowledgeCategory 知识分类
     * @return 知识分类集合
     */
    public List<KnowledgeCategory> selectKnowledgeCategoryList(KnowledgeCategory knowledgeCategory);

    /**
     * 新增知识分类
     * 
     * @param knowledgeCategory 知识分类
     * @return 结果
     */
    public int insertKnowledgeCategory(KnowledgeCategory knowledgeCategory);

    /**
     * 修改知识分类
     * 
     * @param knowledgeCategory 知识分类
     * @return 结果
     */
    public int updateKnowledgeCategory(KnowledgeCategory knowledgeCategory);

    /**
     * 删除知识分类
     * 
     * @param id 知识分类主键
     * @return 结果
     */
    public int deleteKnowledgeCategoryById(Long id);

    /**
     * 批量删除知识分类
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteKnowledgeCategoryByIds(Long[] ids);
}
